package com.game.beans;

import com.game.GameWindow;

import java.awt.*;
import java.awt.image.BufferedImage;

public class BackgroundBean extends GameBean{
    public BackgroundBean() {
        super();
    }

    public BackgroundBean(BufferedImage img, int x, int y, double speed) {
        super(img, x, y, speed);
    }

    public BackgroundBean(BufferedImage img, int x, int y, int width, int height, double speed, GameWindow frame) {
        super(img, x, y, width, height, speed, frame);
    }

    @Override
    public void paintSelf(Graphics graphics) {
        super.paintSelf(graphics);
        /*y += speed;
        if (y >= 0 ){
            y = -252;
        }*/
    }
}
